<template>
    <div>
        <div class="pay">
            <div class="model">
                <img :src="goodscover" alt="">
                <span>X1</span>
            </div>
            
           
        </div>
         <van-submit-bar :price="price*100" button-text="提交订单" @submit="onSubmit" />
    </div>
</template>
<style lang="scss" scoped>
.pay{
    padding: 10px;
  .model{
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 10px;
      img{
          width: 100px;
          height: 100px;
      }
  }
}
</style>
<script>


export default {
    data(){
        return {
            goodscover:'',
            price:''
        }
    },
    created(){
        this.goodscover=localStorage.getItem('goodscover');
        this.price=localStorage.getItem('price');
    }
}
</script>
